package com.back.mapper;

import com.back.domain.SysDept;
import com.back.domain.VO.SysDeptVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 陈胜杰
* @description 针对表【sys_dept(组织机构)】的数据库操作Mapper
* @createDate 2024-07-12 10:22:00
* @Entity com.back.domain.SysDept
*/
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {
//查询列表树数据
    @Select("select id,name,parent_id,tree_path from sys_dept")
    List<SysDeptVO> sysDeptGetAll();
}




